package com.fxd.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @auther fuxudong
 * @date 2021/5/3 - 18:46
 */
@RestController
public class FlowLimitController {

    //关联的路径资源挂了后，自己会挂
    @GetMapping("/testa")
    public String testa() {
        try {
            Thread.sleep(800);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "testa";
    }

    @GetMapping("/testb")
    public String testb() {
        return "testb";
    }
}
